#include <iostream>
using namespace std;
int max(int a[], int size);

int main()
{
    int num[] = {4, 2, 21, 15, 66};
    cout << "zuida de shu shi: " << max(num, sizeof(num)/sizeof(int)) << endl;
	return 0;
}

int max(int a[], int size)
{
		int maxnum = 0;
	for(int i=0; i < size; i++)
	{
		if (a[i] > maxnum) maxnum = a[i];
	}
	return maxnum;
}
